﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Studentyemian/Student.Master" AutoEventWireup="true" CodeBehind="stuxinxichaxun.aspx.cs" Inherits="zlh.Studentyemian.stuxinxichaxun" %>
<asp:Content ID="Content1" ContentPlaceHolderID="stuConPlaHd" runat="server">
    <p>
        &nbsp;
    <asp:Label ID="Label1" runat="server" CssClass="word" Text="学号："></asp:Label>
    <asp:TextBox ID="TextBox1" runat="server" CssClass="textbox"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" CssClass="button" Text="确认查询" OnClick="Button1_Click" />
        &nbsp;</p>
<p>
        <asp:GridView ID="GridView1" runat="server" HorizontalAlign="Center" AutoGenerateColumns="False" DataKeyNames="stuNo" DataSourceID="SqlDataSource1" Width="662px">
            <Columns>
                <asp:BoundField DataField="stuNo" HeaderText="stuNo" ReadOnly="True" SortExpression="stuNo" />
                <asp:BoundField DataField="stuName" HeaderText="stuName" SortExpression="stuName" />
                <asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender" />
                <asp:BoundField DataField="Age" HeaderText="Age" SortExpression="Age" />
                <asp:BoundField DataField="College" HeaderText="College" SortExpression="College" />
                <asp:BoundField DataField="Major" HeaderText="Major" SortExpression="Major" />
                <asp:BoundField DataField="Class" HeaderText="Class" SortExpression="Class" />
                <asp:BoundField DataField="Memo" HeaderText="Memo" SortExpression="Memo" />
                <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" />
            </Columns>
            <HeaderStyle CssClass="gridxiewHeaderstyle" />
            <RowStyle CssClass="gridviewrowstyle" />
        </asp:GridView>
</p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014112130ConnectionString11 %>" SelectCommand="SELECT * FROM [StudentInformation] WHERE ([stuNo] = @stuNo)">
            <SelectParameters>
                <asp:ControlParameter ControlID="TextBox1" Name="stuNo" PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        </asp:Content>
